// 创建角色表
const mongoose = require("mongoose");
//创建约束
const securitySchema = new mongoose.Schema({
  name: { type: String, required: true }, //安保名称
  auth_name: String, //授权人
  auth_time: { type: Number, default: Date.now }, //授权时间
  create_time: { type: Number, default: Date.now }, //入职时间
  menus: Array, //权限列表
});
const securityModel = mongoose.model("security", securitySchema);
module.exports = securityModel;
